package com.tools.genxsd.constant;

/**
 * 正则常量
 * @author: zhoubin
 * @date: 2022/11/17
 */
public class RegexConstant {

    /**
     * 普通字符串
     */
    public static final String SIMPLE_TEXT_REGEX = "^Max(\\d+)Text\\b";

    /**
     * 数字字符串
     */
    public static final String NUMERIC_TEXT_REGEX = "^Max(\\d+)NumericText\\b";

    /**
     * 报文结构正则
     */
    public static final String XSD_FILE_NAME_REGEX = "[a-z]{4}\\.\\d{3}\\.\\d{3}\\.\\d{2}";


    /**
     * lei码的正则
     */
    public static final String LEI_IDENTIFIER_REGEX = "[A-Z0-9]{18,18}[0-9]{2,2}";

    /**
     * BICFIDEC2014码正则
     */
    public static final String BICFIDEC2014_IDENTIFIER_REGEX = "[A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9]{3,3}){0,1}";

    /**
     * bic码正则
     */
    public static final String BIC_IDENTIFIER_REGEX = "[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}";

    public static final String CURRENCY_CODE_REGEX = "[A-Z]{3,3}";

    /**
     * 两点
     */
    public static final String DOUBLE_DOT_REGEX = "\\.\\.";

    /**
     * 圆括号正则
     */
    public static final String PARENTHESIS_REGEX = "\\(";

    /**
     * 数字串正则前缀
     */
    public static final String MAX_N_NUMERIC_PRE_REGEX = "[0-9]{1,";
}
